package hu.uszeged.inf.wlab.stunner.database.utils;

/**
 * Utility class to hold the commonly used constants.
 * 
 * @author szelezsant
 */
public final class DatabaseConstants {
	/** Constant for the drop table pattern. */
	public static final String DROP_TABLE_PATTERN = " drop table if exists {0} ";

	/** Constant for the type integer. */
	public static final String INTEGER = "integer";
	/** Constant for the type text. */
	public static final String TEXT = "text";
	/** Constant for the type real. */
	public static final String REAL = "real";
	/** Constant for the primary key modifier. */
	public static final String PRIMARY_KEY = "primary key";
	/** Constant for the autoincrement modifier . */
	public static final String AUTOINCREMENT = "autoincrement";
	/** Constant for the not null modifier. */
	public static final String NOT_NULL = "not null";
	/** Constant for the comma separator. */
	public static final String COMMA_SEPARATOR = ", ";
	/** Constant for the alias literal. */
	public static final String AS_ALIAS_LITERAL = " AS ";

	/** Constant for the foreign key pattern. */
	public static final String FOREIGN_KEY_REFERENCES_PATTERN = "foreign key({0}) references {1}({2})";
	/** Constant for the create table pattern. */
	public static final String CREATE_TABLE_PATTERN = "create table if not exists {0}";

	/**
	 * Hidden constructor.
	 */
	private DatabaseConstants() {

	}

}
